<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="__CSS__/ex/common.css">
    <link rel="stylesheet" href="__CSS__/ex/login.css">
    <title>WGB.EXC</title>
    <script src="__JS__/ios-web-app.js"></script>
</head>
<style>

    .account_info{
        margin: auto;
    }
    .account_info p{
        padding: .1rem 0;
    }
    .mine_other{
        box-shadow: none;
        background: none;
    }

    .mine_option>div{
        width: 100%;
        height: 1rem;
        display: flex;
        justify-content: left;
        align-items: center;
        border-bottom: 1px solid #dedede;
    }
    .mine_option img{
        width: .4rem;
        margin-right: .3rem
    }
</style>
<body style="padding-top: 38px">

    <section class="yy" style="margin-top:1rem">
        <div class="mine_banner">
            <div class="mine_info">
                <div class="mine_info_left">
                    <div class="mine_info_left_img">
                        <if condition="$data.headimgurl eq ''">
                            <!--                            <img src="__IMG__/ex/exlogo.png" alt=""/>-->
                            <img src="__IMG__/ex/headr.png" width="10rem" alt=""/>
                            <else />
                            <img src="{$data.headimgurl}" alt="">
                        </if>
                    </div>
                    <div>
                        <php>
                            $level=C('leader');
                            $agent=C('agent_level');
                        </php>
                        <p>{$data.username} </p>
                        <p style="width: 3.2rem;">{$data.email}</p>
<!--                        <p style="width: 3.5rem;">+{$data.phone_ex}{$data.phone}</p>-->
                        <div style="display: flex;justify-content: flex-start;">
                            <p style="margin-right: .4rem;">{$level[$data['reseller_level']]}</p>
<!--                            <p>节点：{$agent[$data['agent_level']]}</p>-->
                        </div>
                    </div>
                    <div  style="margin-left:5%;">
                        <a href="{:U("User/user_info")}" style="display:flex;align-items:center">
                        <span style="width: .5rem;padding-right: .2rem"">Set</span><img src="__IMG__/ex/right-red.png" alt="" width="15rem">
                        </a>
                    </div>
                </div>
<!--                <p>钱包地址：{$data.eth_address}</p>-->
            </div>
        </div>

        <div style="background: #F1F3F4;width:7.5rem;margin: 0;line-height:.08rem;">&nbsp;</div>

        <div class="mine_money">
<!--            <h3>持币量</h3>-->
<!--            <h3>EXUU:{$data.z1}&nbsp;&nbsp;</h3>-->
<!--            <h3>USDT:{$data.z8}</h3>-->
<!--            <div style="float: right;">-->
<!--                <span>币种</span>-->
<!--                <select name="" id="" disabled>-->
<!--                    <option value="1">USDT</option>-->
<!--                </select>-->
<!--            </div>-->
            <div class="account_info">
                <div>
                    <p>SWEET</p>
                    <h5>{$data.z1|round=3}</h5>
                </div>
                <div class="addhr"></div>
                <div>
                    <p>DACM</p>
                    <h5>{$data.z2|round=3}</h5>
                </div>
                <div class="addhr"></div>
                <div>
                    <p>USDT</p>
                    <h5>{$data.z8|round=3}</h5>
                </div>
            </div>

        </div>

        <div style="background: #F1F3F4;width:7.5rem;margin: 0;line-height:.08rem;">&nbsp;</div>

        <div class="mine_other">
            <div class="mine_option">

            <div onclick="click_to('{:U("User/earnings")}')">
            <img src="__IMG__/hd/lxwm.png" alt="">
            <a href="javascript:void (0)">
                <p>Transaction Record</p>
            </a>
        </div>

        <div onclick="click_to('{:U("User/qrcode")}')">
        <img src="__IMG__/hd/yq.png" alt="">
        <a href="javascript:void (0)">
            <p>Invite courtesy</p>
        </a>
        </div>

            <div onclick="click_to('{:U("User/user_info")}')">
                    <img src="__IMG__/hd/grzx.png" alt="">
                    <a href="javascript:void (0)">
                        <p>Personal center</p>
                    </a>
                </div>
                <div onclick="click_to('{:U("User/save_password")}')">
                    <img src="__IMG__/hd/xgmm.png" alt="">
                    <a href="javascript:void (0)">
                        <p>Change Password</p>
                    </a>
                </div>



            <div onclick="click_to('{:U("User/language")}')">
            <img src="__IMG__/hd/yysz.png" alt="">
            <a href="javascript:void (0)">
                <p>language settings</p>
            </a>
            </div>


        <div onclick="click_to('{:U("User/guanyu")}')">
                    <img src="__IMG__/hd/gywm.png" alt="">
                    <a href="javascript:void (0)">
                        <p>About us</p>
                    </a>
                </div>
        <div onclick="click_to('{:U("User/contact")}')">
        <img src="__IMG__/hd/lxwm.png" alt="">
        <a href="javascript:void (0)">
            <p>connect us</p>
        </a>
        </div>
                <!--<div onclick="click_to('{:U("User/callus")}')">-->
                    <!--<img src="__IMG__/hd/lxwm.png" alt="">-->
                    <!--<a href="javascript:void (0)">-->
                        <!--<p>联系我们</p>-->
                    <!--</a>-->
                <!--</div>-->
                <div onclick="click_to('{:U("Public/getOut")}')">
                    <img src="__IMG__/hd/tc.png" alt="">
                    <a href="javascript:void (0)">
                        <p>Sign out</p>
                    </a>
                </div>
            </div>
        </div>

    </section>
    <footer class="footer">
        <ul>
            <li>
                <a href="{:U('Index/index')}">
                    <div>
                        <img src="__IMG__/ex/zn_18.png" alt="">
                    </div>
                    <p>Application</p>
                </a>
            </li>
            <li>
                <a href="{:U('Hangqing/index')}">
                    <div><img src="__IMG__/ex/zn_20.png" alt=""></div>
                    <p>Quotes</p>
                </a>
            </li>
            <!--        <li>-->
            <!--            <a href="{:U('Discover/index')}">-->
            <!--                <div><img src="__IMG__/ex/zn_22.png" alt=""></div>-->
            <!--                <p>应用</p>-->
            <!--            </a>-->
            <!--        </li>-->
            <li>
                <a href="{:U('User/index')}">
                    <div><img src="__IMG__/ex/zn_24.png" alt=""></div>
                    <p class="active">My</p>
                </a>
            </li>
        </ul>
    </footer>
    <script src="__COMMON__/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script>
        $('.logout').click(function () {
            window.location.href = "{:U('Public/getOut')}"
        });

        function click_to(path){
            window.location.href=path
        }

        $('#sign').click(function () {
            let ptr62 = $('.ptr62').val();
            let money = $('.money').text();
            let price = parseFloat(ptr62) + parseFloat(money);

            $.ajax({
                type: 'POST',
                url: "{:U('User/sign')}",
                dataType: "json",
                success: function (data) {
                    if (data.code == 1) {
                        alert(data.msg);
                    } else {
                        alert(data.msg);
                        $("#sign").text('Checked in');

                        $('.money').text(price.toFixed(2));
                        // window.location.href=data.data;
                    }
                }
            });
        });
        // $(".qiehuan").click(function () {
        //     $url=window.location.href;
        //     $url_arr=$url.split('/');
        //     $url_arr[3]='vietnam.php';
        //     $url=$url_arr.join('/');
        //     // alert($url);
        //     window.location.href=$url;
        // })
    </script>

</body>

</html>